<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>质料课堂</title>
</head>
<body>
    <table border="1">
        <thead>
            <th>序号</th>
            <th>书名</th>
            <th>作者</th>
        </thead>
        <tbody>
            {% for book in books reversed %}
            <tr>
                <td>{{ forloop.counter0 }}</td>
                <td>{{ book.name }}</td>
                <td>{{ book.author }}</td>
            </tr>
            {% empty %}
            <tr>没有任何图书</tr>
            {% endfor %}
        </tbody>
    </table>
    <div>                        
        {% for key, value in persion.items %}
        <p>{{ key }}:{{ value }}</p>
        {% endfor %}
    </div>
</body>
</html>